function fb(params) {
  var arr = [1,1]
  if(params < 2) return 
  for (let index = 2; index < params; index++) {
    let num = arr[index-1] + arr[index-2]
    arr.push(num)
  }
}
fb(10)